﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace CodeC.Infrastructure.Controls
{
    public class CodeCComboBox : ComboBox
    {
        protected override void OnDropDownClosed(EventArgs e)
        {
            base.OnDropDownClosed(e);
            //This code trigger the SeletedItem Changed event,
            //because SeletedItem bindings will happens when UpdatedSourceTrigger = LostFocus, 
            //this action reset the focus
            this.Focus();
        }
    }
}
